home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Boopsi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  2.4 KB  |  71 lines

  1. //
  2. //  $VER: Boopsi.h      1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_BOOPSI_H
  28. #define CPP_TWIMUI_BOOPSI_H
  29.  
  30. #ifndef CPP_TWIMUI_GADGET_H
  31. #include <classes/twimui/gadget.h>
  32. #endif
  33.  
  34. #ifndef INTUITION_CLASSES_H
  35. #include <intuition/classes.h>
  36. #endif
  37.  
  38. class MUIBoopsi : public MUIGadget
  39.     {
  40.     protected:
  41.         virtual const ULONG ClassNum() const;
  42.     public:
  43.         MUIBoopsi(const struct TagItem *t) : MUIGadget(MUIC_Boopsi) { init(t); };
  44.         MUIBoopsi(const Tag, ...);
  45.         MUIBoopsi() : MUIGadget(MUIC_Boopsi) { };
  46.         MUIBoopsi(const MUIBoopsi &);
  47.         virtual ~MUIBoopsi();
  48.         MUIBoopsi &operator= (const MUIBoopsi &);
  49.         void Class(const struct IClass *p) { set(MUIA_Boopsi_Class,(ULONG)p); };
  50.         struct IClass *Class() const { return((struct IClass *)get(MUIA_Boopsi_Class,NULL)); };
  51.         void ClassID(const UBYTE *p) { set(MUIA_Boopsi_ClassID,(ULONG)p); };
  52.         UBYTE *ClassID() const { return((UBYTE *)get(MUIA_Boopsi_ClassID,'\0')); };
  53.         void MaxHeight(const ULONG p) { set(MUIA_Boopsi_MaxHeight,p); };
  54.         ULONG MaxHeight() const { return(get(MUIA_Boopsi_MaxHeight,0UL)); };
  55.         void MaxWidth(const ULONG p) { set(MUIA_Boopsi_MaxWidth,p); };
  56.         ULONG MaxWidth() const { return(get(MUIA_Boopsi_MaxWidth,0UL)); };
  57.         void MinHeight(const ULONG p) { set(MUIA_Boopsi_MinHeight,p); };
  58.         ULONG MinHeight() const { return(get(MUIA_Boopsi_MinHeight,0UL)); };
  59.         void MinWidth(const ULONG p) { set(MUIA_Boopsi_MinWidth,p); };
  60.         ULONG MinWidth() const { return(get(MUIA_Boopsi_MinWidth,0UL)); };
  61.         Object *ObjectP() const { return((Object *)get(MUIA_Boopsi_Object,NULL)); };
  62.         void TagDrawInfo(const ULONG p) { set(MUIA_Boopsi_TagDrawInfo,p); };
  63.         ULONG TagDrawInfo() const { return(get(MUIA_Boopsi_TagDrawInfo,0UL)); };
  64.         void TagScreen(const ULONG p) { set(MUIA_Boopsi_TagScreen,p); };
  65.         ULONG TagScreen() const { return(get(MUIA_Boopsi_TagScreen,0UL)); };
  66.         void TagWindow(const ULONG p) { set(MUIA_Boopsi_TagWindow,p); };
  67.         ULONG TagWindow() const { return(get(MUIA_Boopsi_TagWindow,0UL)); };
  68.     };
  69.  
  70. #endif
  71.